{include file="public/header" /}
<link rel="stylesheet" href="/static/index/css/page/account-record.css">
<body>
<div class="build-navbar" data-title="{$title}" data-transparent data-color="#fff" data-lcolor="#fff"></div>
<div class="main">
    <img src="/static/index/images/bg/bg_qrddtopbj@2x.png" alt="" class="img-top"/>
    <div class="top m-30 flex flex-col items-center">
        <div class="text">当前账户剩余</div>
        <div class="total front"><?php echo $user->assets->$type; ?></div>
    </div>
    <div class="record p-30">
        <div class="title pb-30">账户明细</div>
        <div class="tpl_list"></div>
    </div>
</div>
</body>
<script id="template" type="text/html">
    {{# for(var i=0;i < d.data.length ;i++){ }}
    <div class="item py-30">
        <div class=" flex items-center justify-between mb-30">
            <div class="default line-1 flex-1">{{d.data[i].intro}}</div>
            <div class="default">{{d.data[i].fx}}￥{{d.data[i].amount}}</div>
        </div>
        <div class=" flex items-center justify-between">
            <div class="gray">{{d.data[i].create_time}}</div>
            <div class="gray">余额：￥{{d.data[i].after}}</div>
        </div>
    </div>
    {{# } }}
</script>
{include file="public/footer"/}
<script>
    layui.use(['methods'], function () {
        layui.methods.getFlowData('{:url("account/getList")}?type={$type}');
    });
</script>
</html>